package org.example.cardgame.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.websocket.Session;

/**
 * @Author juanita.ren
 * @Date 2024/11/11 22:11
 * @Version 1.0
 */

public class Player {
    private int index;
    private String name;
    private String photo;
    private int role;
    private int islost;
    private int startScore;
    private int pullScore;
    private int totalScore;
    @JSONField(
            serialize = false
    )
    private Session session;

    public Player() {
    }

    public int getIndex() {
        return this.index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoto() {
        return this.photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public int getRole() {
        return this.role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public int getIslost() {
        return this.islost;
    }

    public void setIslost(int islost) {
        this.islost = islost;
    }

    public int getStartScore() {
        return this.startScore;
    }

    public void setStartScore(int startScore) {
        this.startScore = startScore;
    }

    public int getPullScore() {
        return this.pullScore;
    }

    public void setPullScore(int pullScore) {
        this.pullScore = pullScore;
    }

    public int getTotalScore() {
        return this.totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    public Session getSession() {
        return this.session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

}

